package dao;

import java.util.List;

import org.hibernate.Session;

import modele.Docentete;


import persistence.BaseDAO;

public class DocenteteDAO{
	
	public static void ajouterDocentete(Docentete docentete, Session session) throws Exception{
		BaseDAO.getInstance().ajouter(docentete,session);
	}

	public static void modifierDocentete(Docentete docentete, Session session) {
		BaseDAO.getInstance().modifier(docentete,session);
	}

	public static void SupprimerDocentete(Docentete docentete, Session session) {
		BaseDAO.getInstance().delete(docentete,session);
	}

	public static void getDocentete(int id, Session session) {
		BaseDAO.getInstance().getObject(Docentete.class, id,session);
	}

	public static List getListDocentete(String requette, Session session) {
		return BaseDAO.getInstance().getListObject(requette,session);
	}

	public static List getListDocentete(String requette, Session session,int firstResult,int maxResults) {
		return BaseDAO.getInstance().getLimitedListObject(requette,firstResult,maxResults,session);
	}
}
